package fresher.java.finaltest.entity;

public class Queen extends Bee {

	public Queen() {
		super("Queen");
	}

	@Override
	public boolean damage(int value) {
		float currentHeath = this.getHealth()- value;
		if (currentHeath < 20) {
			setHealth(currentHeath);
			return true;
		}
		setHealth(currentHeath);
		return false;
	}

	@Override
	public String toString() {

		return this.name;
	}

}
